package top.yumuzhihan.repository;

import org.springframework.beans.factory.annotation.Autowired;
import top.yumuzhihan.entity.Car;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarRepository extends JpaRepository<Car, String> {

    List<Car> findByAvailableTrue(); // 查询所有可租赁的车辆
}
